<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<header>
    <!--页眉-->
    <div class="header">
        <div class="container">
            <c:if test="${ empty user && user eq null}">
                <p class="p14 col-md-12 col-xs-12 text-left"><a style="color: #ffffff" href="${pageContext.request.contextPath}/user/toLogin">登录</a>
                    |<a style="color: #ffffff" href="${pageContext.request.contextPath}/user/toRegister">注册</a>
                </p>

            </c:if>
            <c:if test="${not empty user && !(user eq null)}">
                <c:if test="${user.utype == 1}">
                    <p class="p14 col-md-6 col-xs-6 text-left">欢迎您:${user.uname}用户
                        |<a style="color: #ffffff"
                            href="${pageContext.request.contextPath}/user/toPersonal?userId=${user.uid}">个人中心</a>
                        <c:if test="${not empty user.uidnumber && !(user.uidnumber eq null)}">
                            |<a style="color: #ffffff"
                            href="${pageContext.request.contextPath}/apply/toApply?uId=${user.uid}">申请成为机构</a>
                        </c:if>
                        |<a style="color: #ffffff"
                            href="${pageContext.request.contextPath}/user/userExit">退出</a>
                    </p>
                </c:if>
                <c:if test="${user.utype == 0}">
                    <p class="p14 col-md-6 col-xs-6 text-left">欢迎您:${user.uname}机构
                    |<a style="color: #ffffff"
                    href="${pageContext.request.contextPath}/user/toPersonal?userId=${user.uid}">个人中心</a>
                    |<a style="color: #ffffff"
                    href="${pageContext.request.contextPath}/apply/toApply?uId=${user.uid}">申请记录</a>
                    |<a style="color: #ffffff"
                    href="${pageContext.request.contextPath}/user/userExit">退出</a>
                    </p>
                </c:if>
            </c:if>

        </div>
    </div>

    <!--导航-->
    <nav class="nav_top">
        <div class="container">
            <div class="navbar-header">
                <button class="navbar-toggle collapsed mean" data-toggle="collapse" data-target="#mynavbar">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand logo"><img src="${pageContext.request.contextPath}/user/static/images/logo.png" width="150" height="60"></a>
            </div>
            <div id="mynavbar" class="collapse navbar-collapse">
                <ul class="nav navbar-nav nav_li navbar-right">
                    <li>
                        <a href="${pageContext.request.contextPath}/user/toIndex">首页</a>
                    </li>
                    <li>
                        <a href="${pageContext.request.contextPath}/animal/selectAnimalsByPage?page=1&pageSize=6">动物领养</a>
                    </li>

                    <li>
                        <a href="${pageContext.request.contextPath}/knowledge/selectKnowledgesByPage?page=1&pageSize=8">宠物百科</a>
                    </li>
                    <c:if test="${not empty user && !(user eq null)}">
                        <c:if test="${user.utype == 1}">
                            <li>
                                <a href="${pageContext.request.contextPath}/appointment/toUserAdoptRecode?uId=${user.uid}">领养记录</a>
                            </li>
                        </c:if>
                        <c:if test="${user.utype == 0}">
                            <li>
                                <a href="${pageContext.request.contextPath}/appointment/toUserCoverAdoptRecode?uId=${user.uid}">领养记录</a>
                            </li>
                        </c:if>
                    </c:if>

                    <li>
                        <a href="${pageContext.request.contextPath}/user/volunteer.jsp">联系我们</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
</header>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript">

</script>
